package com.artPreter.service.impl;



import com.artPreter.mapper.DepartTypeMapper;
import com.artPreter.pojo.DepartType;
import com.artPreter.service.IDepartTypeService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

/**
 * <p>
 * 机构分类表 服务实现类
 * </p>
 *
 * @author jarvis
 * @since 2024-11-29
 */
@Service
public class DepartTypeServiceImpl extends ServiceImpl<DepartTypeMapper, DepartType> implements IDepartTypeService {


    @Override
    public List<DepartType> getDepartTypeList(int i) {
        List<DepartType> result = new ArrayList<>();
        LambdaQueryWrapper<DepartType> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(DepartType::getStatus, 1);
        result = this.baseMapper.selectList(queryWrapper);
        return result;
    }
}
